# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=nihtest
pkgver=1.3.0
pkgrel=0
pkgdesc="Testing tool for command line utilities"
url="https://github.com/nih-at/nihtest"
arch="noarch"
license="BSD-3-Clause"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://github.com/nih-at/nihtest/releases/download/v$pkgver/nihtest-$pkgver.tar.gz"
options="!check" # need some intricate setup with cmake..

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl

	install -Dm644 manpages/nihtest-case.man \
		"$pkgdir"/usr/share/man/man5/nihtest-case.5
	install -Dm644 manpages/nihtest.conf.man \
		"$pkgdir"/usr/share/man/man5/nihtest.conf.5
	install -Dm644 manpages/nihtest.man \
		"$pkgdir"/usr/share/man/man1/nihtest.1
}

sha512sums="
39db56c793d9cd04973b3c672735cf085da2fa7f241e7a52d7b3df44b6250155de04d7db2cb5fad417798d21c0f655fd186d499f5f7dba5901f4883c29641226  nihtest-1.3.0.tar.gz
"
